<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/studyblog/Public/admin/css/ch-ui.admin.css">
    <link rel="stylesheet" href="/studyblog/Public/admin/font/css/font-awesome.min.css">
    <script type="text/javascript" src="/studyblog/Public/admin/js/jquery.js"></script>
    <script type="text/javascript" src="/studyblog/Public/admin/js/ch-ui.admin.js"></script>
</head>
<body>
    <!--面包屑导航 开始-->
    <div class="crumb_warp">
        <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
        <i class="fa fa-home"></i> <a href="index.php?p=admin&c=index&a=welcome">首页</a> &raquo; 用户列表
    </div>
    <!--面包屑导航 结束-->
    
    <!--结果页快捷搜索框 开始  独立开发
    <div class="search_wrap">
        <form action="" method="post">
            <table class="search_tab">
                <tr>
                    <th width="78">选择分类:</th>
                    <td>
                        <select onchange="javascript:location.href=this.value;">
                            <option value="">全部</option>
                            <option value="http://www.baidu.com">百度</option>
                            <option value="http://www.sina.com">新浪</option>
                        </select>
                    </td>
                    <th width="70">关键字:</th>
                    <td><input type="text.xml" name="keywords" placeholder="关键字"></td>
                    <td><input type="submit" name="sub" value="查询"></td>
                </tr>
            </table>
        </form>
    </div>-->
    <!--结果页快捷搜索框 结束-->

    <!--搜索结果页面 列表 开始-->
    <form action="#" method="post">
        <div class="result_wrap">
            <!--快捷导航 开始 独立开发
            <div class="result_content">
                <div class="short_wrap">
                    <a href="#"><i class="fa fa-plus"></i>新增文章</a>
                    <a href="#"><i class="fa fa-recycle"></i>批量删除</a>
                    <a href="#"><i class="fa fa-refresh"></i>更新排序</a>
                </div>
            </div>-->
            <!--快捷导航 结束-->
        </div>

        <div class="result_wrap">
            <div class="result_content">
                <table class="list_tab">
                    <tr>
                        <!--
                        <th class="tc" width="5%"><input type="checkbox" name=""></th>
                        <th class="tc">排序</th>
                        -->     
                        <th class="tc">编号</th>
                        <th>姓名</th>
                        <th>登陆次数</th>
                        <th>最后登陆时间</th>
                        <th>最后登陆IP</th>
                        <th>权限</th>
                        <th>操作</th>
                    </tr>

                    {foreach $userlist as $k => $v}
                    <tr >
                        <!--
                        <td class="tc"><input type="checkbox" name="id[]" value="59"></td>
                        <td class="tc">
                            <input type="text.xml" name="ord[]" value="0">
                        </td>
                        -->
                        <td class="tc">{$k+1}</td>
                        <td>{$v.username}</td>
                        <td>{$v.login_count}</td>
                        <td>{$v.last_login_time|date_format:'Y-m-d H:i:s'}</td>
                        <td>{$v.last_login_ip|long2ip}</td>
                        <td>
                            {if  $v.is_admin eq 1}
                            <span style="color:#f00">管理员</span>
                            {elseif $v.is_admin eq 0}
                            普通用户
                            {/if}
                        </td>
                        <td>
                            <a href="index.php?p=admin&c=user&a=updateuser&id={$v.id}">修改</a>
                            <a href="index.php?p=admin&c=user&a=deleteuser&id={$v.id}">删除</a>
                        </td>
                    </tr>
                    {/foreach}



                    <!--<tr>
                        <!--
                        <td class="tc"><input type="checkbox" name="id[]" value="59"></td>
                        <td class="tc">
                            <input type="text.xml" name="ord[]" value="0">
                        </td>
                        -->
                    <!-- <td class="tc">59</td>
                     <td>张三</td>
                     <td>100</td>
                     <td>2014-03-15 21:11:01</td>
                     <td>192.168.1.1</td>
                     <td>
                         <a href="#">修改</a>
                         <a href="#">删除</a>
                     </td>
                 </tr>
                 <tr>
                     <!--
                     <td class="tc"><input type="checkbox" name="id[]" value="59"></td>
                     <td class="tc">
                         <input type="text.xml" name="ord[]" value="0">
                     </td>
                     -->
                    <!--<td class="tc">59</td>
                    <td>张三</td>
                    <td>100</td>
                    <td>2014-03-15 21:11:01</td>
                    <td>192.168.1.1</td>
                    <td>
                        <a href="#">修改</a>
                        <a href="#">删除</a>
                    </td>
                </tr>
                <tr>
                    <!--
                    <td class="tc"><input type="checkbox" name="id[]" value="59"></td>
                    <td class="tc">
                        <input type="text.xml" name="ord[]" value="0">
                    </td>
                    -->
                    <!-- <td class="tc">59</td>
                     <td>张三</td>
                     <td>100</td>
                     <td>2014-03-15 21:11:01</td>
                     <td>192.168.1.1</td>
                     <td>
                         <a href="#">修改</a>
                         <a href="#">删除</a>
                     </td>
                 </tr>-->

                </table>
                <div class="page_nav">
                    <div>
                        <a class="first" href="index.php?p=admin&c=user&a=userlist&pid=1">第一页</a>
                        <a class="prev" href="index.php?p=admin&c=user&a=userlist&pid={$pinfo.pno-1}">上一页</a>
                        {for $i=1 to $pinfo.pcountpage}
                        <a class="num" href="index.php?p=admin&c=user&a=userlist&pid={$i}">{$i}</a>
                        {/for}
                        <a class="next" href="index.php?p=admin&c=user&a=userlist&pid={$pinfo.pno+1}">下一页</a>
                        <a class="end" href="index.php?p=admin&c=user&a=userlist&pid={$pinfo.pcountpage}">最后一页</a>
                        <span class="rows">{$pinfo.pcount} 条记录</span>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <!--搜索结果页面 列表 结束-->
<script>

</script>
</body>
</html>